package com.company.cloud.club.modules.db.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@AllArgsConstructor
@TableName("club_recommend_card")
public class RecommendCard extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableField("title")
    private String title;

    @TableField("content")
    private String content;

    @TableField("type")
    private String type;

    /**
     * 动态类型(IMAGE|VIDEO|TEXT)
     */
    @TableField("file_type")
    private String fileType;

    @TableField("praise_num")
    private Integer praiseNum;

    @TableField("user_id")
    private Integer userId;

    @TableField("parent_id")
    private String parentId;

    @TableField("club_id")
    private String clubId;

    @TableField("product_no")
    private String productNo;

    /**
     * 是否为精品
     */
    @TableField("is_essence")
    private Integer isEssence;

    /**
     * 是否推荐
     */
    @TableField("is_suggest")
    private Integer isSuggest;

    @TableField("is_publish")
    private Integer isPublish;

    public RecommendCard() {

    }

    public RecommendCard(int deleted) {
        super(deleted);
    }

}
